home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / others / ole_101.zip / SCHMOO.ZIP / EXIT.C < prev    next >
C/C++ Source or Header  |  1992-04-13  |  887b  |  47 lines

  1. /*
  2.  * EXIT.C
  3.  *
  4.  * Functions for final cleanup of the SCHMOO application.  Calls any
  5.  * OLE specific functions.
  6.  *
  7.  * Copyright(c) Microsoft Corp. 1992 All Rights Reserved
  8.  *
  9.  */
  10.  
  11. #include <windows.h>
  12. #include <ole.h>
  13. #include "schmoo.h"
  14. #include "oleglobl.h"
  15.  
  16.  
  17. /*
  18.  * FApplicationExit
  19.  *
  20.  * Purpose:
  21.  *  Provides final cleanup of any objects and other actions that
  22.  *  must occur at closing time.
  23.  *
  24.  * Parameters:
  25.  *  pGlob           LPGLOBALS to global variable block.
  26.  *
  27.  * Return Value:
  28.  *  BOOL            TRUE if everything succeeds, FALSE otherwise.
  29.  */
  30.  
  31. BOOL FAR PASCAL FApplicationExit(LPGLOBALS pGlob)
  32.     {
  33.     BOOL        fRet=TRUE;
  34.  
  35.     //Free the stringtable.
  36.     if (NULL!=pGlob->hStringMem)
  37.         LocalFree(pGlob->hStringMem);
  38.  
  39. #ifdef MAKEOLESERVER
  40.  
  41.     fRet=FOLEExit(pOLE);
  42.  
  43. #endif //MAKEOLESERVER
  44.  
  45.     return fRet;
  46.     }
  47.